package com.danger.Activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.tandong.swichlayout.SwitchLayout;

public class MainActivity extends BaseActivity implements View.OnClickListener{

    private Button button;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        initView();
        initEvent();

    }

    @Override
    public void initView() {
        button = (Button) findViewById(R.id.button);
    }

    @Override
    public void initEvent() {
        button.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.button:
                SwitchLayout.getFadingIn(button);
                Intent intent = new Intent(MainActivity.this,SecondActivity.class);
                startActivity(intent);
                break;
            default:
                break;
        }
    }
}